<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择题</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    {load href="/static/css/bootstrap.min.css" /}
    {load href="/static/css/mycss.css" /}
    {load href="/static/js/jquery.js" /}
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    {load href="/static/js/bootstrap.min.js" /}
    <style>

    </style>
</head>
<body>
<div class="container" >
    <div class="row">
        <div class="clo-xs-1">
            <h4>题目预览</h4>
            <span class="pull-leftt close1" >×</span>
            <hr>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-1">
            <input type="button" class="btn btn-default btn-xs co-gray pull-right" value="{$cdata.score}分" disabled />
        </div>
        <div class="col-xs-11">
            {$cdata.title}
            <hr class="dash">
            <br />
            <p>A.&nbsp;&nbsp;{$cdata.optionA}</p>
            <p>B.&nbsp;&nbsp;{$cdata.optionB}</p>
            <p>C.&nbsp;&nbsp;{$cdata.optionC}</p>
            <p>D.&nbsp;&nbsp;{$cdata.optionD}</p>
            <hr class="dash">
            <p>
                <label class="radio-inline">
                    <input type="checkbox" name="answer" value="1" {if condition="in_array('1',$answerarr)"} checked {/if}> A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </label>
                <label class="radio-inline">
                    <input type="checkbox" name="answer" value="2"  {if condition="in_array('2',$answerarr)"} checked {/if}> B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </label>
                <label class="radio-inline">
                    <input type="checkbox" name="answer" value="3" {if condition="in_array('3',$answerarr)"} checked {/if}> C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </label>
                <label class="radio-inline">
                    <input type="checkbox" name="answer" value="4" {if condition="in_array('4',$answerarr)"} checked {/if}> D
                </label>
            <p/>

            <p></p>
            <p class="ph10">正确答案：<span class="co-green">
                {foreach name="answerarr" item="answer"}
                    {switch name="$answer" }
                        {case value="1"}A{/case}
                        {case value="2"}B{/case}
                        {case value="3"}C{/case}
                        {default /}D
                    {/switch}
                {/foreach}
            </span></p>
            <input type="text" class="form-control p30" rows="3" disabled="disabled" value="{$cdata.analysis|strip_tags}">
            <br />
            <br />
            <hr>

            <input type="button" class="btn btn-default pull-right" value="关闭">
        </div>
    </div>
</div>

</body>
</html>